{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="panel">
            <div class="panel-heading">社区商品价格设置</div>
            <div class="panel-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th width="50" class="hidden-xs text-center">ID</th>
                        <th class="text-center">商品名称</th>
                        <th class="text-center">成本</th>
                        <th class="text-center">普通用户</th>
                        <th class="text-center">VIP1</th>
                        <th class="text-center">VIP2</th>
                        <th class="text-center">VIP3</th>
                        <th class="text-center">VIP4</th>
                        <th class="text-center">VIP5</th>
                        <th class="text-center">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="sqlist" id="row"}
                    <tr>
                        <form method="post">
                            <input type="hidden" name="id" value="{$row.sqid}">
                            <td class="text-center">{$row.sqid}</td>
                            <td class="text-center">{$row.name}</td>
                            <td class="text-center">{$row.price}</td>
                            <td class="text-center"><input type="text" name="p0" value="{$row.p.p0}" style="width: 60px;"></td>
                            <td class="text-center"><input type="text" name="p1" value="{$row.p.p1}" style="width: 60px;"></td>
                            <td class="text-center"><input type="text" name="p2" value="{$row.p.p2}" style="width: 60px;"></td>
                            <td class="text-center"><input type="text" name="p3" value="{$row.p.p3}" style="width: 60px;"></td>
                            <td class="text-center"><input type="text" name="p4" value="{$row.p.p4}" style="width: 60px;"></td>
                            <td class="text-center"><input type="text" name="p5" value="{$row.p.p5}" style="width: 60px;"></td>
                            <td class="text-center">
                                <input type="submit" value="修改" class="btn-xs btn-info">
                            </td>
                        </form>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="text-center">{$pageList->showPage()}</div>
            </div>
        </div>
    </div>
</div>

{/block}